<?php

use Illuminate\Routing\Router;
Route::group([
    'prefix' => 'admin/haohaoceManager',
    'namespace' => 'Buu\\Modules\\HaohaoceManager\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {
    $router->get('/index', 'HaohaoceManagerController@index');
    $router->get('/showDesc/{podName}/{svcName}/', 'HaohaoceManagerController@showDesc');
    $router->get('/showProjects/{pod_id}/', 'HaohaoceManagerController@showProjects');
    $router->get('/switchProjectBranch/{pod_id}/{container_name}/{project_dir}/', 'HaohaoceManagerController@switchProjectBranch');
    $router->get('/testPod/{pod_id}/', 'HaohaoceManagerController@testPod');
    $router->get('/do_deletePod/{pod_id}/', 'HaohaoceManagerController@do_deletePod');
    $router->get('/do_pullCode/{pod_id}/', 'HaohaoceManagerController@do_pullCode');
    $router->get('/do_bindDomain/{pod_id}/', 'HaohaoceManagerController@do_bindDomain');
    $router->post('/do_switchBranch/{pod_id}/{container_name}/{project_dir}/', 'HaohaoceManagerController@do_switchBranch');
    $router->post('/do_switchAllBranch/{pod_id}/', 'HaohaoceManagerController@do_switchAllBranch');
    $router->post('/do_create/{pod_type}/', 'HaohaoceManagerController@do_create');
    $router->get('/do_delay/{pod_type}/', 'HaohaoceManagerController@do_delay');
});
